﻿using System;

using Spencen.Mobile.UI.Primitives;

namespace Spencen.Mobile.UI.Templating
{
    public class DefaultDataTemplate : IDataTemplate
    {
        public DrawingElement ApplyTemplate( IDrawingHost host, object dataItem )
        {
            return new TextElement()
            {
                DesiredSize = new DesiredSize( DesiredSize.UnboundAxis, 60 ),
                Text = dataItem.ToString()
            };
        }
    }
}
